package com.yiyuan.app.entity.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guaike.core.entity.annotation.DictConvert;
import com.guaike.core.entity.annotation.NumberAutoConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("松果记录实体")
@Data
public class RecordPineconeVO implements Serializable {

    @ApiModelProperty("标的类型")
    @DictConvert(code = BusinessDictCodeConstant.D_PINECONE_DETAILS_TYPE)
    private Integer labelType;

    @ApiModelProperty("时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("明细类型（0:收入，1:支出）")
    @DictConvert(code = BusinessDictCodeConstant.D_DETAILS_TYPE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Integer detailsType;

    @ApiModelProperty("松果数量")
    @NumberAutoConvert
    private Integer pinecone;

}
